package test.cumulativeProtocol.codec;

import java.nio.charset.Charset;

import org.apache.mina.core.session.IoSession;
import org.apache.mina.filter.codec.ProtocolEncoderAdapter;
import org.apache.mina.filter.codec.ProtocolEncoderOutput;

/**
 * 编码
 * 
 * @author Simple
 * @date 2013-5-21 下午04:09:51
 * @Description TODO
 */
public class TProtocolEncoder extends ProtocolEncoderAdapter {

  private Charset charset;

  public TProtocolEncoder(Charset charset) {
    this.setCharset(charset);
  }

  @Override
  public void encode(IoSession paramIoSession, Object paramObject, ProtocolEncoderOutput paramProtocolEncoderOutput)
    throws Exception {
    // TODO Auto-generated method stub
  }

  public void setCharset(Charset charset) {
    this.charset = charset;
  }

  public Charset getCharset() {
    return charset;
  }
}
